﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Mirror;

public class AppStart : MonoBehaviour
{
    public bool AppIsServer = false;

    private NetworkManager networkManager;

    private void Start()
    {
        networkManager = GetComponent<NetworkManager>();

        if (AppIsServer) networkManager.StartServer();
        else networkManager.StartClient();
    }
}